<?php

/**
 * Created by PhpStorm.
 * User: ChorKeung
 * Date: 2017/1/17
 * Time: 9:40
 */

namespace Home\Model;
use Think\Model;

class MemberModel extends Model{

    protected $tableName = 'Member';

    protected $_auto = array (
        array('member_pwd','md5',3,'function'),
    );

    protected $_validate = array(
        array('member_tel','','该电话号码已经存在。',0,'unique',1),
    );

}